"""
保险产品 API 管理
"""

from fastapi import APIRouter, Depends, HTTPException, status as status_module, Query


router = APIRouter()


@router.get(
    "/",
    # response_model=List[ProductsResponse]
    summary="获取保险产品列表",
    description="获取保险产品列表"
        )
async def get_products(
    skip: int = Query(0, ge=0, description="跳过的记录数"),
    limit: int = Query(100, ge=1, le=100, description="返回的记录数"),
):
    """获取保险产品列表"""
    # products = await Products.all().offset(skip).limit(limit)
    return {
        "code": 200,
        # "data": await Products.all().offset(skip).limit(limit),
        "msg": "获取保险产品列表成功"
    }